<script src="__PUBLIC__/js/angular/angularjs.js"></script>


<div ng-app="addPerson">
	<div ng-controller="mainController">
		<div>使用angular处理业务逻辑</div>
		<div id="3333">{$url}</div>
		
		<form class="form-horizontal" role="form" action="{:U('Person/addPerson')}" method="post">
		  
		  <div class="form-group">
		    <label class="col-sm-2 control-label">用户名</label>
		    <div class="col-sm-10">
		      <input type="text" name="name" class="form-control" >
		    </div>
		  </div>
		  
		    <div class="form-group">
			    <label >File input</label>
			    <input type="file" name="">
			    <p class="help-block">Example block-level help text here.</p>
			  </div>
		  
		  <div class="form-group">
		   	<label class="col-sm-2 control-label">密码</label>
		    <div class="col-sm-10">
		      <input type="text" name="password" class="form-control" >
		    </div>
		  </div>
		  
		  <div class="form-group">
		   	<label class="col-sm-2 control-label">生日</label>
		    <div class="col-sm-10">
		      <input type="text" name="birthday" class="form-control" >
		    </div>
		  </div>
		  
		  <div class="form-group">
		   	<label class="col-sm-2 control-label">邮箱</label>
		    <div class="col-sm-10">
		      <input type="text" name="email" class="form-control" >
		    </div>
		  </div>
		  
		  <div class="form-group">
		   	<label class="col-sm-2 control-label">性别</label>
		    <div class="col-sm-10">
		      <select class="form-control" name="sex">
				  <option>男</option>
				  <option>女</option>
				</select>
		    </div>
		  </div>
		  
		  <div class="form-group">
		   	<label class="col-sm-2 control-label">爱好</label>
		    <div class="col-sm-10">
		      <div class="checkbox">
				  <label>
				    <span><input type="checkbox" value="篮球" name="hobby">篮球</span>
				    <span><input type="checkbox" value="足球" name="hobby">足球</span>
				    <span><input type="checkbox" value="乒乓球" name="hobby">乒乓球</span>
				  </label>
				</div>
		    </div>
		  </div>
		  
		  <div class="form-group">
		    <div class="col-sm-offset-2 col-sm-10">
		      <button type="submit" name="submit" value="添加" class="btn btn-default">添加</button>
		    </div>
		  </div>
		  
		</form>
		
	</div>
</div>
<script>

	//定义一个功能为addPerson模块
	angular.module("addPerson",function() {

	})
	//定义该模块下面的控制器mainController
    .controller("mainController",["$scope",function($scope){
        //alert(1111);
    }])
      
		
</script>


